<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>Document</title>
	</head>
	<body>
		<button id="btn">回到第一页</button>
	</body>
</html>
<script>
	var btn = document.getElementById("btn");
	btn.onclick = function() {
		history.go(-2);
	};



</script>